﻿using Dapper;
using System;
using BCEntity.TMS.WorryFreeMoveSuiteConfig;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;
using BCCommon.TMS.Transport;

namespace BCData.TMS.WorryFreeMoveSuiteConfig
{
	/// <summary>
	/// 无忧搬家套餐配置
	/// </summary>
	public interface IWorryFreeMoveSuiteConfigData
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		Task<bool> Exists(int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="provinceCode">省编码</param>
		/// <param name="cityCode">市编码</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="vehicleBusinessMappingId">车辆业务配置Id</param>
		/// <returns></returns>
		Task<bool> Exists(long agentRecordId, string provinceCode, string cityCode, string countyCode, int vehicleBusinessMappingId);
		/// <summary>
		/// 增加无忧搬家套餐配置
		/// </summary>
		/// <param name="entity">无忧搬家套餐配置信息</param>
		Task<WorryFreeMoveSuiteConfigEntity> Add(WorryFreeMoveSuiteConfigEntity entity);
		/// <summary>
		/// 更新无忧搬家套餐配置
		/// </summary>
		/// <param name="entity">无忧搬家套餐配置信息</param>
		Task<WorryFreeMoveSuiteConfigEntity> Update(WorryFreeMoveSuiteConfigEntity entity);
		/// <summary>
		/// 删除无忧搬家套餐配置
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		Task<bool> Delete(int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 获取无忧搬家套餐配置
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		Task<WorryFreeMoveSuiteConfigEntity> GetEntity(int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 获取无忧搬家套餐配置
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="provinceCode">省编码</param>
		/// <param name="cityCode">市编码</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="vehicleBusinessMappingId">车辆业务配置Id</param>
		/// <returns></returns>
		Task<WorryFreeMoveSuiteConfigEntity> GetEntity(long agentRecordId, string provinceCode, string cityCode, string countyCode, int vehicleBusinessMappingId);
		/// <summary>
		/// 获取无忧搬家套餐配置列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="countyCode">区县编码</param>
		Task<IEnumerable<WorryFreeMoveSuiteConfigViewEntity>> GetList(long agentRecordId, string countyCode);
		/// <summary>
		/// 获取无忧搬家套餐配置列表
		/// </summary>
		/// <returns></returns>
		Task<IEnumerable<WorryFreeMoveSuiteConfigViewEntity>> GetList();
		/// <summary>
		/// 获取无忧搬家套餐配置分页列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="suiteName">套餐名称</param>
		/// <param name="provinceCode">省份编码</param>
		/// <param name="cityCode">城市编码</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">每页数据条数</param>
		Task<(IEnumerable<WorryFreeMoveSuiteConfigEntity>, int)> Query(long? agentRecordId,string suiteName,string provinceCode, string cityCode, string countyCode, bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用无忧搬家套餐配置
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Enabled(int worryFreeMoveSuiteConfigId, long adminId, string fullname);
		/// <summary>
		/// 禁用无忧搬家套餐配置
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Disabled(int worryFreeMoveSuiteConfigId, long adminId, string fullname);
		#endregion  成员方法
	}


}